import math

import torch

loss = torch.nn.PairwiseDistance()

positive = torch.randn(1, 2, requires_grad = True)
negative = torch.randn(1, 2, requires_grad = True)

out_loss = loss( positive, negative)
print(out_loss)
out_loss.backward()



